#include<iostream>
#define MAX 100
using namespace std;
int main(){
  string a,b;
  cin>>a>>b;
  int i=0;
  int na[MAX]={},nb[MAX]={},sum[MAX]={};
  for(i=a.size();i>0;i--){
    na[i]=a[a.size()-i]-'0';
  }
  for(i=b.size();i>0;i--){
    nb[i]=b[b.size()-i]-'0';
  }
  int len= a.size()>b.size()?a.size():b.size();
  for(i=1;i<=len;i++){
    sum[i]=sum[i]+na[i]+nb[i];
    sum[i+1]=sum[i+1]+sum[i]/10;
    sum[i]%=10;
  }
  if(sum[len+1])len++;
  for(i=len;i>0;i--)cout<<sum[i];
}